package com.wad.manager.service;

import com.github.pagehelper.PageInfo;
import com.wad.dto.system.SysRoleDto;
import com.wad.entity.system.SysRole;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author wad
 * @date 2023/12/01 10:57
 * @project e-commerce
 **/

@Service
public interface SysRoleService {
    PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer current, Integer limit);

    void saveSysRole(SysRole sysRole);

    void updateSysRole(SysRole sysRole);

    void deleteById(Long roleId);

    Map<String, Object> findAll(Long userId);
}
